
<?php
//debug($d);
if($result):
?>
<h2><?php echo __('Results') ?></h2>

<?php
echo $this->Form->input('found',array('options'=>$result,'empty'=>'select','label'=>__('Found Companies',true)));
?>
<div class="showNextBtn acceptCompany"><?php __('Choose'); ?></div>
<?php
else:
?>
<h2><?php echo __('Filter companies'); ?></h2>
<?php
echo $this->Form->create(null,array('class'=>'filterCompanies'));
?> <table><tbody><tr><td> <?php
    echo $this->Form->input('title',array('label'=>__('title',true)));?> </td><td> <?php
    echo $this->Form->input('site',array('label'=>__('site',true)));?> </td></tr><tr><td> <?php
    echo $this->Form->input('department',array('label'=>__('Department',true)));?> </td><td> <?php
    echo $this->Form->input('activity',array('label'=>__('Activity',true)));?> </td></tr><tr><td> <?php
    echo $this->Form->input('code',array('label'=>__('Code',true)));?> </td><td> <?php
    echo $this->Form->input('country',array('label'=>__('Country',true)));?> </td></tr></tbody></table> <?php
   

echo $this->Form->end('submit');

endif;
?>